Skip to content

arm64: dts: qcom: nord: Add RPMh sleep stats - #1557

Open
navya-malempati wants to merge 1 commit into
qualcomm-linux:qcom-7.3-esfrom
navya-malempati:nord-add-rpmh-stats
Open

navya-malempati wants to merge 1 commit into
qualcomm-linux:qcom-7.3-esfrom
navya-malempati:nord-add-rpmh-stats

Conversation

@navya-malempati

Copy link
Copy Markdown

Add RPMh stats to read low power statistics for various subsystem and SoC sleep modes.

Add RPMh stats to read low power statistics for various subsystem
and SoC sleep modes.

Signed-off-by: Navya Malempati <navya.malempati@oss.qualcomm.com>
@apateriy-qcom

Copy link
Copy Markdown

navya-malempati please add correct Upstream tag

@apateriy-qcom apateriy-qcom left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add the right upstream tag

@qcomlnxci

Copy link
Copy Markdown

Test results

Workflow run: 45808277707 attempt 1

Known failures configured: 0

Target Pass Non-pass Total
kbdev-nord-rrd-multimedia 21 15 36

Test Matrix

Test Case kbdev-nord-rrd-multimedia
LAVA result ✅ Results
Audio_Card_Registration ⚠️ skip
BT_FW_KMD_Service ❌ Fail
BT_ON_OFF ❌ Fail
BT_SCAN ❌ Fail
CPUFreq_Validation ✅ Pass
CPU_affinity ✅ Pass
DSP_AudioPD ⚠️ skip
Ethernet_Basic_Validation ❌ Fail
Freq_Scaling ✅ Pass
GIC ✅ Pass
IPA ✅ Pass
Interrupts ✅ Pass
KVM_Driver ❌ Fail
KVM_EL2_DTB ❌ Fail
KVM_Infra ❌ Fail
OpenCV ✅ Pass
PCIe ✅ Pass
Probe_Failure_Check ❌ Fail
RMNET ✅ Pass
UFS_Validation ✅ Pass
USBHost ✅ Pass
WiFi_Firmware_Driver ✅ Pass
WiFi_OnOff ⚠️ skip
adsp_remoteproc ❌ Fail
cdsp_remoteproc ❌ Fail
gpdsp_remoteproc ⚠️ skip
hotplug ✅ Pass
irq ✅ Pass
kaslr ✅ Pass
pinctrl ✅ Pass
qcom_hwrng ✅ Pass
rngtest ✅ Pass
shmbridge ✅ Pass
smmu ❌ Fail
watchdog ✅ Pass
wpss_remoteproc ✅ Pass
Failure summary

Unexpected failures

  • kbdev-nord-rrd-multimedia: cdsp_remoteproc => fail.
  • kbdev-nord-rrd-multimedia: adsp_remoteproc => fail.
  • kbdev-nord-rrd-multimedia: gpdsp_remoteproc => skip.
  • kbdev-nord-rrd-multimedia: Probe_Failure_Check => fail.
  • kbdev-nord-rrd-multimedia: smmu => fail.
  • kbdev-nord-rrd-multimedia: Ethernet_Basic_Validation => fail.
  • kbdev-nord-rrd-multimedia: BT_FW_KMD_Service => fail.
  • kbdev-nord-rrd-multimedia: BT_ON_OFF => fail.
  • kbdev-nord-rrd-multimedia: BT_SCAN => fail.
  • kbdev-nord-rrd-multimedia: WiFi_OnOff => skip.
  • kbdev-nord-rrd-multimedia: DSP_AudioPD => skip.
  • kbdev-nord-rrd-multimedia: Audio_Card_Registration => skip.
  • kbdev-nord-rrd-multimedia: KVM_Driver => fail.
  • kbdev-nord-rrd-multimedia: KVM_EL2_DTB => fail.
  • kbdev-nord-rrd-multimedia: KVM_Infra => fail.

Result: blocked because unexpected failures were found.

@qcomlnxci

Copy link
Copy Markdown

Test results

Workflow run: 45809530449 attempt 1

Known failures configured: 0

Target Pass Non-pass Total
kbdev-nord-rrd-multimedia 21 15 36

Test Matrix

Test Case kbdev-nord-rrd-multimedia
LAVA result ✅ Results
Audio_Card_Registration ⚠️ skip
BT_FW_KMD_Service ❌ Fail
BT_ON_OFF ❌ Fail
BT_SCAN ❌ Fail
CPUFreq_Validation ✅ Pass
CPU_affinity ✅ Pass
DSP_AudioPD ⚠️ skip
Ethernet_Basic_Validation ❌ Fail
Freq_Scaling ✅ Pass
GIC ✅ Pass
IPA ✅ Pass
Interrupts ✅ Pass
KVM_Driver ❌ Fail
KVM_EL2_DTB ❌ Fail
KVM_Infra ❌ Fail
OpenCV ✅ Pass
PCIe ✅ Pass
Probe_Failure_Check ❌ Fail
RMNET ✅ Pass
UFS_Validation ✅ Pass
USBHost ✅ Pass
WiFi_Firmware_Driver ✅ Pass
WiFi_OnOff ⚠️ skip
adsp_remoteproc ❌ Fail
cdsp_remoteproc ❌ Fail
gpdsp_remoteproc ⚠️ skip
hotplug ✅ Pass
irq ✅ Pass
kaslr ✅ Pass
pinctrl ✅ Pass
qcom_hwrng ✅ Pass
rngtest ✅ Pass
shmbridge ✅ Pass
smmu ❌ Fail
watchdog ✅ Pass
wpss_remoteproc ✅ Pass
Failure summary

Unexpected failures

  • kbdev-nord-rrd-multimedia: cdsp_remoteproc => fail.
  • kbdev-nord-rrd-multimedia: adsp_remoteproc => fail.
  • kbdev-nord-rrd-multimedia: gpdsp_remoteproc => skip.
  • kbdev-nord-rrd-multimedia: Probe_Failure_Check => fail.
  • kbdev-nord-rrd-multimedia: smmu => fail.
  • kbdev-nord-rrd-multimedia: Ethernet_Basic_Validation => fail.
  • kbdev-nord-rrd-multimedia: BT_FW_KMD_Service => fail.
  • kbdev-nord-rrd-multimedia: BT_ON_OFF => fail.
  • kbdev-nord-rrd-multimedia: BT_SCAN => fail.
  • kbdev-nord-rrd-multimedia: WiFi_OnOff => skip.
  • kbdev-nord-rrd-multimedia: DSP_AudioPD => skip.
  • kbdev-nord-rrd-multimedia: Audio_Card_Registration => skip.
  • kbdev-nord-rrd-multimedia: KVM_Driver => fail.
  • kbdev-nord-rrd-multimedia: KVM_EL2_DTB => fail.
  • kbdev-nord-rrd-multimedia: KVM_Infra => fail.

Result: blocked because unexpected failures were found.

@qlijarvis

Copy link
Copy Markdown

LAVA Failed Case Triage Summary

PR: #1557

Job 294660 | SoC iq10-nord

LAVA job: https://lava-oss.qualcomm.com/scheduler/job/294660

Failed test cases in LAVA job 294660 (SoC: iq10-nord).

  Case 1: cdsp_remoteproc
  1. Failed case: cdsp_remoteproc
  2. Root cause: Could not be determined confidently from available logs.
  3. Possible fix: Re-package the rootfs image to include the missing CDSP firmware files at /lib/firmware/qcom/nord/cdsp.mbn, or update the LAVA job definition to use a build artifact that includes the complete firmware package for iq10-nord. If firmware is intentionally excluded from this test image variant, update the test plan to skip cdsp_remoteproc and adsp_remoteproc on this configuration.
  4. Detail analysis attachment: failed_case_job294660_1_detailed.md
  Case 2: adsp_remoteproc
  1. Failed case: adsp_remoteproc
  2. Root cause: ADSP remoteproc boot failure due to firmware loading timing issue — the remoteproc driver attempts to load qcom/nord/adsp.mbn at 9.38 seconds during early boot before the root filesystem containing /lib/firmware is fully mounted and accessible, resulting in request_firmware failed: -2 (ENOENT). The firmware file exists on the filesystem (confirmed by later test checks) but is not accessible at the time the remoteproc driver probes and attempts autoboot. This is a known issue on iq10-nord where remoteproc drivers probe before the firmware partition is ready.
  3. Possible fix: Disable remoteproc autoboot for ADSP (and other affected subsystems: CDSP, SOCCP) in the device tree by removing or setting qcom,auto-boot = <0> in the respective remoteproc nodes, allowing userspace to manually trigger subsystem boot after the filesystem is fully mounted. Alternatively, ensure the firmware partition is mounted earlier in the boot sequence by adjusting initramfs or using a firmware loader that defers until the filesystem is ready.
  4. Detail analysis attachment: failed_case_job294660_2_detailed.md
  Case 3: ** Probe_Failure_Check
  1. Failed case: ** Probe_Failure_Check
  2. Root cause: ** The Probe_Failure_Check test detected 21 probe/firmware failures on iq10-nord, including missing remoteproc firmware files (soccp.mbn, adsp.mbn, cdsp.mbn for 6 remoteproc instances), Ethernet PHY probe failures (Aquantia AQR113C -EBUSY), GPU firmware missing (gen71300_sqe.fw), and 2 deferred probe entries (I2C device 0-004c, sound card PCM1681). These are pre-existing platform issues unrelated to the PR's RPMh stats DT addition.
  3. Possible fix: These failures are expected on iq10-nord due to incomplete firmware packaging and platform bring-up. The PR (adding RPMh sleep stats DT node) does not introduce or affect these probe failures. No action required for this PR; track firmware/driver issues separately in platform bring-up tickets.
  4. Detail analysis attachment: failed_case_job294660_3_detailed.md
  Case 4: smmu
  1. Failed case: smmu
  2. Root cause: Video codec device (aa00000.video-codec) is not attached to any IOMMU group during kernel boot, failing the SMMU test's critical master protection check. The device probes successfully and is functional, but lacks the required IOMMU/SMMU protection that the test expects for DMA-capable devices on iq10-nord.
  3. Possible fix: Add the missing iommus property to the video codec device tree node (aa00000.video-codec) in the iq10-nord device tree to bind it to the appropriate SMMU instance, then verify the device appears in /sys/kernel/iommu_groups/ after boot.
  4. Detail analysis attachment: failed_case_job294660_4_detailed.md
  Case 5: ** Ethernet_Basic_Validation
  1. Failed case: ** Ethernet_Basic_Validation
  2. Root cause: ** Aquantia AQR113C PHY driver probe failure with -EBUSY error during firmware ID register read at boot time (~9.6s), preventing both eth0 and eth1 PHY devices from registering with the MDIO subsystem; subsequent interface bring-up attempts fail because the MAC driver cannot attach to the non-existent PHY devices.
  3. Possible fix: This is a pre-existing platform issue unrelated to PR arm64: dts: qcom: nord: Add RPMh sleep stats #1557 (which only adds RPMh stats node). Investigate PHY reset timing in arch/arm64/boot/dts/qcom/nord-embedded.dtsi — increase reset-deassert-us to ≥100ms per Aquantia AQR113C datasheet; verify Aquantia firmware files are present in /lib/firmware/ on target rootfs; if issue persists, enable PHY driver debug (dyndbg="file drivers/net/phy/aquantia* +p") and check MDIO bus clock state in /sys/kernel/debug/clk/clk_summary. Short-term: mark Ethernet tests as known-failing on iq10-nord CI configuration.
  4. Detail analysis attachment: failed_case_job294660_5_detailed.md
  Case 6: BT_FW_KMD_Service
  1. Failed case: BT_FW_KMD_Service
  2. Root cause: Bluetooth WCN7850 firmware initialization fails due to persistent HCI command timeouts (-ETIMEDOUT) during QCA version read (command 0xfc00). The failure correlates with 304 concurrent SPMI bus timeout errors affecting PMIC ADC channels and thermal sensors on the iq10-nord platform, indicating a systemic SPMI communication failure that prevents proper Bluetooth hardware power sequencing and UART communication.
  3. Possible fix: This is a pre-existing iq10-nord platform issue unrelated to PR arm64: dts: qcom: nord: Add RPMh sleep stats #1557 (which only adds RPMh stats DT node). Investigate SPMI bus controller health on the iq10-nord LAVA target: check SPMI clock sources, PMIC firmware version, and power rail stability. As an immediate mitigation, re-run the test on a different iq10-nord board or re-flash the current board's firmware to rule out board-specific hardware degradation.
  4. Detail analysis attachment: failed_case_job294660_6_detailed.md
  Case 7: BT_ON_OFF
  1. Failed case: BT_ON_OFF
  2. Root cause: WCN7850 Bluetooth controller fails to respond to HCI command 0xfc00 (QCA version read) with -ETIMEDOUT (-110) consistently from boot through all recovery attempts, indicating the Bluetooth firmware is not loading or the hardware power/clock sequencing is broken on iq10-nord.
  3. Possible fix: This is a pre-existing platform issue unrelated to the PR (which only adds RPMh stats DT node). Investigate wcn7850-pmu power sequencing — the log shows "supply vddio1p2 not found, using dummy regulator" at boot, suggesting missing or incorrect power supply configuration in the device tree for the WCN7850 PMU node. Verify the wcn7850-pmu DT node has correct vddio1p2-supply, vddaon-supply, vdddig-supply, vddrfa1p2-supply, and vddrfa1p8-supply regulators defined and that the regulators are enabled before Bluetooth probe.
  4. Detail analysis attachment: failed_case_job294660_7_detailed.md
  Case 8: BT_SCAN
  1. Failed case: BT_SCAN
  2. Root cause: WCN7850 Bluetooth firmware initialization fails persistently with HCI command 0xfc00 timeout (error -110, ETIMEDOUT) during QCA version information read; the Bluetooth controller never completes power-on sequence despite 3 retries per recovery attempt across 2 recovery cycles; power sequencing warning "supply vddio1p2 not found, using dummy regulator" indicates missing regulator dependency in wcn7850-pmu device tree node on iq10-nord platform.
  3. Possible fix: Add the missing vddio1p2-supply regulator reference to the wcn7850-pmu device tree node in arch/arm64/boot/dts/qcom/nord-embedded.dtsi; verify the regulator is defined and enabled in the PMIC device tree; if the PR's addition of RPMh sleep stats node at 0xc30f000 conflicts with or affects power domain sequencing for the WCN7850 subsystem, adjust the node placement or verify RPMh stats does not interfere with Bluetooth power-on timing.
  4. Detail analysis attachment: failed_case_job294660_8_detailed.md
  Case 9: ** KVM Driver Initialization — HYP Mode Unavailable (Platform Limitation)
  1. Failed case: ** KVM Driver Initialization — HYP Mode Unavailable (Platform Limitation)
  2. Root cause: ** The iq10-nord platform boots with the Gunyah hypervisor at EL2, hosting the Linux kernel as a guest VM at EL1. KVM requires direct access to EL2 (HYP mode) to provide virtualization services, which is not available in this nested configuration. The kernel correctly detects this limitation and reports "HYP mode not available" without creating /dev/kvm.
  3. Possible fix: This is not a bug requiring a fix. The test expectation is incorrect for this platform configuration. Recommended action: Update the LAVA test suite to skip KVM tests (KVM_Driver, KVM_EL2_DTB, KVM_Infra) on platforms running with Gunyah hypervisor, or configure the test to expect SKIP instead of FAIL when /dev/kvm is absent due to nested virtualization constraints.
  4. Detail analysis attachment: failed_case_job294660_9_detailed.md
  Case 10: KVM_EL2_DTB — Platform Capability Limitation
  1. Failed case: KVM_EL2_DTB — Platform Capability Limitation
  2. Root cause: The iq10-nord SoC does not support ARM virtualization extensions (EL2/HYP mode), causing KVM to fail initialization with "HYP mode not available" and preventing /dev/kvm device creation.
  3. Possible fix: This is a pre-existing platform limitation, not a regression. The KVM tests should be skipped on iq10-nord hardware that lacks virtualization support. Add platform capability detection to the LAVA test suite to skip KVM tests when EL2 is unavailable, or update the test expectations for iq10-nord to mark KVM tests as "not applicable" rather than "fail".
  4. Detail analysis attachment: failed_case_job294660_10_detailed.md
  Case 11: KVM_Infra (platform configuration limitation)
  1. Failed case: KVM_Infra (platform configuration limitation)
  2. Root cause: KVM cannot initialize on iq10-nord because the platform runs with Gunyah hypervisor at EL2, preventing Linux from accessing hypervisor mode. The kernel message "kvm [1]: HYP mode not available" indicates Linux is running as a guest at EL1 without VHE support, making /dev/kvm unavailable. This is a pre-existing platform limitation unrelated to the PR changes (RPMh stats addition).
  3. Possible fix: This is not a bug to fix but a platform configuration constraint. To enable KVM on iq10-nord: (1) boot without Gunyah hypervisor to allow Linux direct EL2 access, OR (2) enable nested virtualization support in Gunyah if available, OR (3) exclude KVM tests from the CI test suite for platforms running with Gunyah hypervisor. The PR can be merged as-is since it does not cause this failure.
  4. Detail analysis attachment: failed_case_job294660_11_detailed.md
  Case 12: KVM_Infra
  1. Failed case: KVM_Infra
  2. Root cause: KVM initialization failed because the iq10-nord platform is running under the Gunyah hypervisor, which occupies EL2 (HYP mode). The kernel message "kvm [1]: HYP mode not available" at boot time indicates KVM detected it cannot access EL2 because a hypervisor is already running at that privilege level. CONFIG_KVM is enabled in the kernel config, but /dev/kvm device node is never created because the KVM subsystem initialization aborts when it detects HYP mode is unavailable.
  3. Possible fix: This is not a PR-introduced regression. The PR only adds RPMh sleep stats DT node and does not affect KVM or virtualization. The KVM_Infra test failure is a pre-existing platform limitation: iq10-nord runs with Gunyah hypervisor by default, making nested virtualization (KVM) unavailable. To enable KVM testing on this platform, either: (1) disable Gunyah hypervisor in the boot configuration and boot Linux directly at EL2, or (2) exclude KVM tests from the iq10-nord CI test suite, or (3) use a different platform without a hypervisor for KVM validation.
  4. Detail analysis attachment: failed_case_job294660_12_detailed.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants